import request from '@/utils/request'
//链接源
export function sysJournalQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysJournal/query',
    params: data,
  })
}

export function sysJournalQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysJournal/query/' + id,
  })
}

export function sysJournalAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/sysJournal/add',
    data,
  })
}

export function sysJournalDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/sysJournal/delete/' + id,
  })
}

export function sysJournalDeleteBatch(data) {
  //批量删除
  return request({
    method: 'post',
    url: '/sysJournal/deleteBatch',
    data,
  })
}

export function sysJournalUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/sysJournal/update',
    data,
  })
}

export function sysJournalOpenApiQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysJournal/openApi/query',
    params: data,
  })
}

export function sysJournalOpenApiQueryId(id) {
  //列表一条
  return request({
    method: 'get',
    url: '/sysJournal/openApi/query/' + id,
  })
}

export function sysJournalQueryId(id) {
  //列表一条
  return request({
    method: 'get',
    url: '/sysJournal/query/' + id,
  })
}

export function sysJournalImport(data) {
  //导入
  return request({
    method: 'post',
    url: '/sysJournal/import',
    data,
  })
}

export function sysJournalOpenApiQueryYear() {
  //过刊预览 - 获取年份
  return request({
    method: 'get',
    url: '/sysJournal/openApi/queryYear',
  })
}

export function sysJournalQueryPdfList(id) {
  //过刊预览 - 获取年份
  return request({
    method: 'get',
    url: '/sysJournal/queryPdfList/' + id,
  })
}
